
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>添加商品</title>
	<!-- bootstrap 核心css -->
	<link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap.min.css">
	<hdjs/>
	<!-- bootstrap 核心js -->
	<script src="__PUBLIC__/bootstrap/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="__PUBLIC__/Common/css/main.css" />
	<style type="text/css">
		input[type="text"]{
            background-color: #FFFFFF;
            border: 2px solid #DDDDDD;
            border-radius: 0;
            box-shadow: 2px 2px 2px #F0F0F0 inset !important;
            color: #555555;
            display: inline-block;
            font-size: 12px;
            line-height: 30px;
            margin: 0;
            padding: 0 6px;
            vertical-align: middle;
            height: 30px;
        }
	</style>
</head>
<body>
	<div class="pos">添加商品</div>
	<form action="{|U:'add2_save'}" name="addForm" method="post">
		<table class="table table-bordered table-hover">

			<tr height="30">
				<td class="" width="150">主标题：</td>
				<td><input type="text" name="title" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">副标题：</td>
				<td><input type="text" name="subtitle" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">原价：</td>
				<td><input type="text" name="price" /><span class="tishi">元</span></td>
			</tr>
			<tr height="30">
				<td class="" width="150">团购价：</td>
				<td><input type="text" name="group_price" /><span class="tishi">元</span></td>
			</tr>
			<foreach from="$attrArr" key="$k" value="$v">
			<tr height="30">
				<td class="" width="150">{$v.attrname}：</td>
				<td>
					<foreach from="$v['value']" key="$key" value="$value">
					<label class="radio inline"><input type="radio" name="atid[{$k}]" value="{$key}"> {$value}</label> 
					</foreach>
				</td>
			</tr>
			</foreach>
			<tr height="30">
				<td class="" width="150">截止日期：</td>
				<td>
				  <input type="text" readonly="readonly" id="updatetime" name="close_date"
				  value="{|date:'Y-m-d'}" class="w150"/>
 				 <script>
				    $('#updatetime').calendar({format: 'yyyy-MM-dd'});
				 </script>
				</td>
			</tr>
			<tr height="30">
				<td class="" width="150">不可用日期：</td>
				<td><input type="text" name="not_use_date" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">使用时间：</td>
				<td><input type="text" name="use_time" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">服务承诺：</td>
				<td>
				<label class="checkbox inline"><input type="checkbox" name="promise[]" value="1" /> 随时退</label>
				<label class="checkbox inline"><input type="checkbox" name="promise[]" value="2" /> 过期退</label>
				<label class="checkbox inline"><input type="checkbox" name="promise[]" value="3" /> 急速退</label>
				<label class="checkbox inline"><input type="checkbox" name="promise[]" value="4" /> 真实评价</label>
				</td>
			</tr>
			<tr height="30">
				<td class="" width="150">预约提醒：</td>
				<td><input type="text" name="appointment" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">温馨提示：</td>
				<td><textarea name="reminder"></textarea></td>
			</tr>
			<tr height="30">
				<td class="" width="150">重要通知：</td>
				<td><textarea name="notice"></textarea></td>
			</tr>
			<tr height="30">
				<td class="" width="150">商家服务：</td>
				<td><input type="text" name="service" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">商品图片：</td>
				<td><upload size='5' type='jpg,png,gif' limit='5' name='pic' alt="false" water="false"/></td>
			</tr>

			<tr height="30">
				<td class="" width="150">本单详情：</td>
				<td><keditor content='' width='800' height='300' name='details'/></td>
			</tr>
			
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" value="添加" class="btn btn-primary" /></td>
			</tr>
		</table>
		<input type="hidden" name="cid" value="{$step1.cid}" />
		<input type="hidden" name="sid" value="{$step1.sid}" />
	</form>
</body>
</html>